Skip to content

fix(tabs): announce the active tab to VoiceOver on tab switch (#1490)#1508

Merged
datlechin merged 2 commits into
mainfrom
a11y/tabs-windows
May 30, 2026
Merged

fix(tabs): announce the active tab to VoiceOver on tab switch (#1490)#1508
datlechin merged 2 commits into
mainfrom
a11y/tabs-windows

Conversation

@datlechin
Copy link
Copy Markdown
Member

Part of #1490 (keyboard, focus, accessibility). Tabs & windows surface.

Most of this surface's critical gaps (filter Apply focus return, Apply .defaultAction, filter button labels) already landed in #1492. The remaining clean win is the VoiceOver gap:

  • On windowDidBecomeKey (a native window-tab switch), post an .announcementRequested accessibility notification with the active tab's title, so VoiceOver users get the same context the window title gives sighted users. Posted unconditionally (the system delivers it only to running assistive tech).

Native NSAccessibility.post, no behavior change for non-VoiceOver users.

Deferred (uncertain / larger): explicit first-responder restore on tab switch (AppKit's NSWindow already restores its first responder), and recalculateKeyViewLoop wiring, which belongs with the Tab-between-panes work.

Lint clean, style gate clean.

@datlechin datlechin merged commit adddf11 into main May 30, 2026
4 checks passed
@datlechin datlechin deleted the a11y/tabs-windows branch May 30, 2026 06:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant